# Project: sgl-demo
# Makefile created by Dev-C++ 4.9.9.2 mdify from vroby

CPP  = g++
CC   = gcc
WINDRES = 
RES  = 
OBJ  = linux/sgl-demo.o linux/sgl.o $(RES)
LINKOBJ  = linux/sgl-demo.o linux/sgl.o $(RES)
LIBS =  -lSDL -lSDL_mixer -lSDL_image -lSDL_ttf  -lsmpeg -lpthread -lm  -lfreetype -ldl -lpng -ljpeg -ltiff -lz 

INCS = 
CXXINCS =  
BIN  = sgl-demo
CXXFLAGS = $(CXXINCS)   -DUNIX
CFLAGS = -I/usr/include/SDL -g -O2 -DUNIX 
RM = rm -f
MKDIR = mkdir -p


all: sgl-demo 

all-befor8e:
	$(MKDIR) "linux"


clean: 
	$(RM) $(OBJ) $(BIN)

$(BIN): $(OBJ)
	$(CC) $(LINKOBJ) -o $@ $(LIBS)
linux/sgl-demo.o: sgl-demo.c
	$(MKDIR) linux
	$(CC) $(CFLAGS) -c sgl-demo.c -o linux/sgl-demo.o

linux/sgl.o: ../sgl.c
	$(CC) $(CFLAGS) -c ../sgl.c -o linux/sgl.o